package org.yang.common.core.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import org.yang.common.i18n.constant.I18nMessageConstant;

/**
 * @author zhouyang
 * @version v1.0
 * @date 2024/8/28 16:52
 * @description 常用状态/开关枚举
 */

@Getter
public enum StatusEnum implements IBaseEnum<Integer> {

    /**
     * 关闭
     */
    OFFLINE(I18nMessageConstant.OFFLINE,0),
    /**
     * 开启
     */
    ONLINE(I18nMessageConstant.ONLINE,1),
    ;

    @JsonValue
    private final Integer value;
    private final String label;

    StatusEnum(String label, Integer value) {
        this.label = label;
        this.value = value;
    }
}
